﻿using System;
using GeoAPI.Geometries;

namespace NetTopologySuite.Index.Strtree
{
	[Serializable]
	public class ItemBoundable<T, TItem> : IBoundable<T, TItem> where T : IIntersectable<T>, IExpandable<T>
	{
		public ItemBoundable(T bounds, TItem item)
		{
			this._bounds = bounds;
			this._item = item;
		}

		public T Bounds
		{
			get
			{
				return this._bounds;
			}
		}

		public TItem Item
		{
			get
			{
				return this._item;
			}
		}

		private readonly T _bounds;

		private readonly TItem _item;
	}
}
